﻿

#include "desktop.h"

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
	LPSTR szCmdLine, int iCmdShow)
{
	MessageBox(0, 0, 0, 0);
	MYUI::CUIThread::Init(hInstance);
	SetCurrentDirectoryW(MYUI::CUIThread::GetModuleFolder());

	CSysFunction::SetThreadDpiAwarenessContext(CSysFunction::UIDPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE);
	CFrameWindow* window = new CFrameWindow();
	RECT rect;
	rect.left = 0;
	rect.top = 0;
	rect.right = 800;
	rect.bottom = 640;

	window->CreateEx(hInstance, NULL, WS_EX_TOOLWINDOW, 
		WS_VISIBLE | WS_OVERLAPPEDWINDOW ,
		//WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_SYSMENU,
		TEXT("虚拟桌面"), TEXT("虚拟桌面"), &rect);

	window->CenterWindow();
	window->ShowModal();
	delete window;

	MYUI::CUIThread::Uninit();

	return 0;
}